package com.lxh.mediator;

/**
 * 具体中介者 联合国安理会
 * Create by lxh on 2020/2/15
 */
public class SecurityCouncil extends UnitedNations{

    private USA usa;

    private Iraq iraq;

    @Override
    public void send(String message, Country country) {
        if (country == usa) {
            iraq.getMessage(message);
        } else {
            usa.getMessage(message);
        }
    }

    public void setUsa(USA usa) {
        this.usa = usa;
    }

    public void setIraq(Iraq iraq) {
        this.iraq = iraq;
    }
}
